home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Sound / SndPlayDoubleBuffer / _headers / Interrupt_Routines.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-15  |  1.5 KB  |  61 lines  |  [TEXT/CWIE]

  1. /*
  2. **    Apple Macintosh Developer Technical Support
  3. **
  4. **    Headers for routines demonstrating how to manage interrupt routines for sound play.
  5. **
  6. **    by Mark Cookson, Apple Developer Technical Support
  7. **
  8. **    File:    Interrupt_Routines.h
  9. **
  10. **    Copyright ©1996 Apple Computer, Inc.
  11. **    All rights reserved.
  12. **
  13. **    You may incorporate this sample code into your applications without
  14. **    restriction, though the sample code has been provided "AS IS" and the
  15. **    responsibility for its operation is 100% yours.  However, what you are
  16. **    not permitted to do is to redistribute the source as "Apple Sample
  17. **    Code" after having made changes. If you're going to re-distribute the
  18. **    source, we require that you make it clear in the source that the code
  19. **    was descended from Apple Sample Code, but that you've made changes.
  20. */
  21.  
  22. #ifndef __INTERRUPT_ROUTINES__
  23. #define __INTERRUPT_ROUTINES__
  24.  
  25. #include <Sound.h>
  26.  
  27. #ifndef __SOUNDSTRUCT__
  28. #include "SoundStruct.h"
  29. #endif
  30.  
  31. #ifndef __DBFFERRORS__
  32. #include "DBFF_Errors.h"
  33. #endif
  34.  
  35. #ifndef __DOUBLEBUFFERFROMFILE__
  36. #include "DoubleBufferFromFile.h"
  37. #endif
  38.  
  39. #ifndef __MUNGEBUFFER__
  40. #include "MungeBuffer.h"
  41. #endif
  42.  
  43. #ifndef __DEFINES__
  44. #include "Defines.h"
  45. #endif
  46.  
  47. /* Function declarations */
  48. #ifdef powerc
  49. pascal    void    ASoundFileCallBack        (myParmBlkPtr mypb);
  50. #else
  51. pascal    void    ASoundFileCallBack        (myParmBlkPtr mypb:__a0);
  52. #endif
  53. pascal    void    ASoundDoubleBackProc    (SndChannelPtr chan,
  54.                                         SndDoubleBufferPtr doubleBuffer);
  55. pascal    void    ASoundDoneCallBack        (SndChannelPtr chan,
  56.                                         SndCommand *cmd);
  57.  
  58. extern Boolean    gBackwards, gSoundDone;
  59.  
  60. #endif
  61.